package sortutil

func BubbleSort(arr []int) {
	size := len(arr) - 1
	for i := 0; i < size; i++ {
		for n := 0; n < size-i; n++ {
			if arr[n] > arr[n+1] {
				arr[n], arr[n+1] = arr[n+1], arr[n]
			}
		}
	}
}
